<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>android 与JS之间的交互 - 漩涡鸣人 - 博客园</title>
    <script>

        function getName() {
            return "Abduleziz"
        }


        function setName(param) {
            alert(JSON.stringify(param))

        }

        function normal() {
            alert("Noraml")
        }

        function generic() {
            return "this is generic"
        }

        function person() {
            var person = {
                name: "Swift",
                age: 5,
                sex: 0
            };
            return person
        }

        function list() {
            var arr = [
                person = {
                    name: "Swift",
                    age: 5,
                    sex: 0
                }, person = {
                    name: "Java",
                    age: 20,
                    sex: 1
                }, person = {
                    name: "C#",
                    age: 30,
                    sex: 2
                }
            ];

            return arr
        }


        function callJava() {
            var res = hook.hello();
            alert(res);
        }


    </script>

    <style>
        .myInput {
            width: 100%;
            height: 50px;
            background-color: aqua;
            border: none;
            border-style: none;
        }


    </style>
</head>

<body>
<input class="myInput" type="button" value="Man" onclick="window.main.man()">
<input class="myInput" type="button" value="Hello" onclick="callJava()">
</body>
</html>
